function cons_sum_power = cal_sum_power(N,K,ww)
cons_sum_power = zeros(N,1);
for nn=1:N
    for kk=1:K
        cons_sum_power(nn) = cons_sum_power(nn) + (ww(:,nn,kk)'*ww(:,nn,kk));
    end
end
cons_sum_power = real(cons_sum_power);
end